package bean;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;


@ManagedBean
@SessionScoped
public class BeanRole implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ManagedProperty(value="#{beanPersonne}")
	BeanPersonne beanPersonne;
	
	@ManagedProperty(value="#{beanFilm}")
	BeanFilm beanFilm;
	
	int id;
	
	public void setBeanPersonne(BeanPersonne beanPersonne){
		this.beanPersonne=beanPersonne;
	}
	
	public BeanRole(){}
	
	public void setBeanFilm(BeanFilm beanFilm){
		this.beanFilm=beanFilm;
		id=beanFilm.getFilm().getId();
	}
//	
//	public String getRole(){
//		return beanPersonne.getRoleWithFilm(id);
//	}
//	
}
